package com.base.schema.factory.abstracts;

public class Main {

	public static void main(String[] args) {
		
		//创建小米品牌生产电器的工厂
		ConcreteFactory1 factory = new ConcreteFactory1();
		AbstractProductA createProductA = factory.createProductA();
		AbstractProductB createProductB = factory.createProductB();
		
		createProductA.methodDif();
		createProductB.methodDif();
		
		createProductA.createTV();
		createProductB.createMobile();
		
	}
	
	
}
